package com.scujj.cs6.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(name = "回答视图对象", description = "回答视图对象")
public class AnswerVo {
    /**
     * 回答ID
     */
    @Schema(description = "回答ID")
    private Long id;

    /**
     * 问题ID
     */
    @Schema(description = "问题ID")
    private Long questionId;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String avatar;


    /**
     * 回答内容
     */
    @Schema(description = "回答内容")
    private String content;

    /**
     * 点赞数
     */
    @Schema(description = "点赞数")
    private Integer likeCount;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Date updateTime;
}
